package com.example.floristshop.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {
    public static String timestamp_to_timeString(long timestamp){
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
        String date_string = sdf.format(new Date(timestamp * 1000L));
        return date_string;
    }
}
